projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22230e9
)
usb: pci: Fix cast for 64-bit compilation
author
Simon Glass
<
[email protected]
>
Mon, 26 Sep 2016 03:33:21 +0000
(21:33 -0600)
committer
Bin Meng
<
[email protected]
>
Tue, 11 Oct 2016 03:55:33 +0000
(11:55 +0800)
Fix a cast that causes warnings on 64-bit machines.
Signed-off-by: Simon Glass <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
drivers/usb/host/ehci-pci.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-pci.c
b/drivers/usb/host/ehci-pci.c
index 6fc24792af9c0ebcfc280d10223de4a72ba3da43..f20fc3354cc0c96a10a0747e0ce3fb4e61d958d8 100644
(file)
--- a/
drivers/usb/host/ehci-pci.c
+++ b/
drivers/usb/host/ehci-pci.c
@@
-32,8
+32,8
@@
static void ehci_pci_init(struct udevice *dev, struct ehci_hccr **ret_hccr,
hcor = (struct ehci_hcor *)((uintptr_t) hccr +
HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
- debug("EHCI-PCI init hccr
0x%x and hcor 0x%
x hc_length %d\n",
- (u
32)hccr, (u32
)hcor,
+ debug("EHCI-PCI init hccr
%#lx and hcor %#l
x hc_length %d\n",
+ (u
long)hccr, (ulong
)hcor,
(u32)HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
*ret_hccr = hccr;